home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Sample Code / Networking / StreamNOP1.0b1 / Read Me About StreamNOP next >
Encoding:
Text File  |  1997-08-06  |  2.0 KB  |  60 lines  |  [TEXT/ttxt]

  1. Read Me About StreamNOP
  2.  
  3. 1.0b1
  4.  
  5. StreamNOP is a sample STREAMS module that was designed for you to use as a template when creating STREAMS modules.  The template demonstrates the following features:
  6.  
  7. 1. An empty STREAMS module that does nothing to messages that pass through it.
  8.  
  9. 2. Set up for using "OTDebug.h".
  10.  
  11. 3. Set up for Instrumentation using the Instrumentation SDK.
  12.  
  13. 4. My standard technique for getting per-stream data.
  14.  
  15. 5. All my standard asserts.
  16.  
  17. StreamNOP is largely derived from the TPIFile source, but it is simplified to the point where it makes a useful template.
  18.  
  19. Packing List
  20.  
  21. The StreamNOP package contains the following items:
  22.  
  23. • Read Me About StreamNOP — This document.
  24.  
  25. • StreamNOP.µ — A PPC project file to build the “StreamNOP” module.
  26. • StreamNOP.µ.exp — A list of CFM symbols that are exported by the project.
  27. • StreamNOP — A compiled version of the StreamNOP.µ project.
  28.  
  29. • StreamNOP.c — Source to the StreamNOP module.
  30.  
  31. Installation and Execution
  32.  
  33. To test the sample, do the following:
  34.  
  35. 1. Drag the “StreamNOP” module into your Extensions folder.
  36.  
  37. 2. You can now open a stream using the following code snippet and StreamNOP will be inserted in the stream:
  38.  
  39.   ep = OTOpenEndpoint(OTCreateConfiguration("StreamNOP,tcp"), …);
  40.  
  41. Building the Sample
  42.  
  43. This sample was built using the Metrowerks CodeWarrior 11 environment and the Open Transport 1.1.1 SDK interfaces and libraries.
  44.  
  45. To rebuild the sample, first open the project and change the “LatestInterfaces” and “LatestLibraries” access paths to point to the interfaces and libraries from the OT 1.1.1 (or newer) SDK.  Then choose Make from the Project menu to build the StreamNOP module.
  46.  
  47. Credits and Version History
  48.  
  49. If you find any problems with this sample, mail <DevSupport@applelink.apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.
  50.  
  51. Version 1.0b1 is the first release.
  52.  
  53. Share and Enjoy
  54.  
  55. Quinn “The Eskimo!”
  56. Apple Developer Technical Support
  57. Networking, Communications, Hardware
  58.  
  59. 6 Aug 1997
  60.